/**
 * 
 */
package atomicRegister;

import java.io.Serializable;

import se.sics.kompics.Event;

/**
 * @author federico
 *
 */
public class ReadResponse extends Event implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private final int r;
	private final int readval;
	
	
	/**
	 * @param r
	 * @param readval
	 */
	public ReadResponse(int r, int readval) {
		super();
		this.r = r;
		this.readval = readval;
	}


	/**
	 * @return the register number
	 */
	public int getR() {
		return r;
	}


	/**
	 * @return the value read from register r
	 */
	public int getReadval() {
		return readval;
	}

}
